package 设计模式.工厂模式;

import 设计模式.工厂模式.factory.chickenFactory;
import 设计模式.工厂模式.factory.factory;
import 设计模式.工厂模式.factory.fishFactory;

public class main {
    public static factory fishFactory = new fishFactory();

    public static factory chickenFactory = new chickenFactory();
    public static void main(String[] args) {

        System.out.println(fishFactory.createFood().eat());
        System.out.println(chickenFactory.createFood().eat());
    }
}
